<%@ page language="java" pageEncoding="utf-8"%>
<style>
      body {
        min-height: 1000px;
        padding-top: 80px;
      }

    </style>
<!-- Static navbar -->
<div class="navbar navbar-default navbar-fixed-top" role="navigation">
	<div class="container">
		<div class="navbar-header">
			<button type="button" class="navbar-toggle" data-toggle="collapse"
				data-target=".navbar-collapse">
				<span class="sr-only">校园社团门户</span>
				<input type="hidden" id="userId" value="<%=session.getAttribute("uid") %>">
			</button>
			<a class="navbar-brand" href="#">校园社团门户 </a>
		</div>
		<div class="navbar-collapse collapse">

			<%
						if (session.getAttribute("uname") == null) {
					%>
			<ul class="nav navbar-nav">
				<li class="active"><a href="">主页</a></li>
				<li><a href="us">关于我们</a></li>
			</ul>
			<ul class="nav navbar-nav navbar-right">
				<li id="nav_login"><a href="user/login">登陆</a></li>
				<li id="nav_reg"><a href="user/register">注册会员</a></li>
				<li id="nav_regSt"><a href="user/registerSt">注册社团</a></li>
			</ul>
			<%
						} else {
							int role=(Integer)session.getAttribute("role");
							if(role==1){//如果是管理员
								%>
								<ul class="nav navbar-nav">
									<li class="active"><a href="">主页</a></li>
									<li><a href="us">关于我们</a></li>
								</ul>
								<ul class="nav navbar-nav navbar-right">
									<li><a>欢迎管理员&nbsp;<%=session.getAttribute("uname")%></a></li>
									<li id="nav_regHy"><a href="admin/admin">会员管理</a></li>
									<li><a href="user/logout">注销</a></li>
								</ul>
								<%
							}else if(role==2){//如果是社区管理员
								%>
								<ul class="nav navbar-nav">
									<li class="active"><a href="">主页</a></li>
									<li><a href="article">发布信息</a></li>
									<li><a href="article/recruitment">招募会员</a></li>
									<li><a href="us">关于我们</a></li>
								</ul>
								<ul class="nav navbar-nav navbar-right">
									<li><a>欢迎社团管理员&nbsp;<%=session.getAttribute("uname")%></a></li>
									<li id="nav_regHt"><a href="admin/association">进入后台</a></li>
									<li><a href="user/logout">注销</a></li>
								</ul>
								<%
							}else if(role==3){
								%>
								<ul class="nav navbar-nav">
									<li class="active"><a href="">主页</a></li>
									<li><a href="us">关于我们</a></li>
								</ul>
								<ul class="nav navbar-nav navbar-right">
									<li><a>欢迎会员&nbsp;<%=session.getAttribute("uname")%></a></li>
									<li id="nav_regHt"><a href="admin/memberMail">进入后台</a></li>
									<li><a href="user/logout">注销</a></li>
								</ul>
								<%
							}
							
					
						}
					%>

		</div>
		<!--/.nav-collapse -->
	</div>
</div>
